<?php
	/**
	* @author zhouguoyan
	* @desc 访问 news_mst表
	**/	
class News extends AppModel{
	var $name="News";
	var $useTable="news_mst";
	var $primaryKey = 'id';
	

	function valid($Valid,$params){
		$message='';
		$message .= $Valid->ErrorMsg($params,'News/company_name','required');
		$message .= $Valid->ErrorMsg($params,'News/company_name','mbmaxlength',100);
		$message .= $Valid->ErrorMsg($params,'News/contribute_date','required');
		$message .= $Valid->ErrorMsg($params,'News/contents','required');	
		
		return $message;
	}
	function doDelete($id)
	{
//		$p=$data['Workkind']['id'];
//		$str=implode(',',$p);
		$sql="update news_mst set deleted=now() where id in ($id)";
		$p=$this->query($sql);
		
	}
}
?>
